// let intent = $engines.myEngine().execArgv.intent;
// if (!intent) {
//     console.log("非监听触发");
//     exit();
// }


let BatteryManager = android.os.BatteryManager;
log(BatteryManager.EXTRA_LEVEL);
// let level = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, -1);
// console.log("电量为", level);